package shuashuami.hb.com.entity.agent;

import org.json.JSONObject;

/**
 * created by zhangqi at 2017/7/10
 */
public class OrderBean {
    private String username;
    private String avatar;
    private String mobile;
    private String recievetime;
    private double commission_parent;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRecievetime() {
        return recievetime;
    }

    public void setRecievetime(String recievetime) {
        this.recievetime = recievetime;
    }

    public double getCommission_parent() {
        return commission_parent;
    }

    public void setCommission_parent(double commission_parent) {
        this.commission_parent = commission_parent;
    }

    public void resolveByJson(JSONObject item) throws Exception{
        username=item.getString("username");
        avatar=item.getString("avatar");
        mobile=item.getString("mobile");
        recievetime=item.getString("recievetime");
        commission_parent=item.getDouble("commission_agent");
    }
}
